package cn.edu.cug.cs.gtl.oi.ui.actions;

import cn.edu.cug.cs.gtl.oi.ui.MainApp;
import com.openinventor.inventor.viewercomponents.awt.glcanvas.viewers.ViewerExaminer;
import com.openinventor.ivtune.SoIvTune;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class OpenInventorStudioActionListener implements ActionListener {
    MainApp theApp;
    public OpenInventorStudioActionListener(MainApp theApp){
        this.theApp = theApp;
    }
    @Override
    public void actionPerformed(ActionEvent e) {
        ViewerExaminer viewerExaminer = theApp.getMainWindow().getRenderPanel().getViewer();
        SoIvTune.start(viewerExaminer.getRenderArea().getSceneInteractor());
    }
}
